#!/usr/bin/env jruby
# -*- coding: us-ascii -*-
# Elizabeth Wiethoff 2008

require 'java'
require 'pp' if $DEBUG

########################################

def bigGrayTitledBorder(title)
  titledBorder = javax.swing.BorderFactory.createTitledBorder(title)
  
  titleFont = titledBorder.getTitleFont
  fontFamily = titleFont.getFamily
  biggerFontSize = titleFont.getSize * 4 / 3
  biggerBolderFont = java.awt.Font.new(
    fontFamily, java.awt.Font::BOLD, biggerFontSize)
  
  titledBorder.setTitleFont(biggerBolderFont)
  titledBorder.setTitleColor(java.awt.Color::DARK_GRAY)
  
  return titledBorder
end
